package com.fairytask.data
{
	import com.fairytask.managers.BindManager;

	public class ObjectData extends BaseData
	{
		public var 	parent:ObjectData;
		private var bindMgr	:BindManager;
		
		public function ObjectData(parent:BaseData=null, objKey:String=null, weakKeys:Boolean=false)
		{
			super(parent, objKey, weakKeys);
			bindMgr	=	BindManager.instance;
		}
		
		/**
		 * 同HandleProperties 为了兼容 
		 * @param pKey
		 * @param pVal
		 * 
		 */
		public function HandlePropertiesEx(pKey:*,pVal:*):void
		{
			super.HandleProperties(pKey,pVal);
			bindMgr.CallBind(this,pKey,pVal,true);
		}
		/**删除属性*/
		public final function DeletePropertiesEx(PropertiesName : String):void
		{
			if(CheckProperties(PropertiesName))
			{
				bindMgr.CallBind(this,PropertiesName,GetProperties(PropertiesName),false);
			}
			super.clr(PropertiesName);
		}
	}
}